<%@ page language="java" import="java.util.*,shop.dao.*,shop.entity.*"  pageEncoding="utf-8"%>
<%
		String p_id=request.getParameter("p_id");
		ProductDao productDao = new ProductDao();
		int intTemp=productDao.deleteProduct(p_id);
		if(intTemp!=0)
		{
			out.println("<script language='javascript'>alert('产品删除成功!');window.location.href='goods_list.jsp';</script>");
		}
		else
		{
			out.println("<script language='javascript'>alert('产品删除失败!');window.location.href='goods_list.jsp';</script>");
		}
 %>
